﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utility;
using Data;
namespace DataAccess
{
    public class Tbl_EbookBus
    {
        LinqUtility<tbl_ebook> context = new LinqUtility<tbl_ebook>();

        public List<tbl_ebook> getListEbook()
        {
            return context.GetAll();
        }

        public void insertEbook(tbl_ebook te)
        {
            context.Insert(te);
        }

        public void updateEbook(tbl_ebook te)
        {
            context.Update(te);
        }

        public void delete(tbl_ebook te)
        {
            context.Delete(te);
        }

    }
}
